# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpicview
pkgver=0.2.5
pkgrel=2
pkgdesc="Picture viewer of the LXDE Desktop"
url="https://wiki.lxde.org/en/GPicView"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-lang"
makedepends="gtk+3.0-dev intltool libjpeg-turbo-dev"
source="https://downloads.sourceforge.net/project/lxde/GPicView%20%28image%20Viewer%29/${pkgver%.*}.x/gpicview-$pkgver.tar.xz"

prepare() {
	default_prepare
	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr \
		--enable-gtk3
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="afc7e67c7ae1252f9c1816ee46fe69e96ea7be9a60e03406a539f17b2e4f0e4b93a028c6f3f1c455f5433d6d7d78a58dcee2cb0ac91ea53093a21935bf454afd  gpicview-0.2.5.tar.xz"
